package com.soft.service;

import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.util.Assert;

import com.soft.entity.Orders;
import com.soft.service.OrdersService; // 补充 DeptService 的导入（根据注入逻辑推断）


@SpringBootTest
public class OrdersServiceTest {

    @Autowired
    private OrdersService OrdersService;
    @Test
    public void queryByDeptNameTest() {
        List<Orders> userList = OrdersService.queryByProductName("aaaa");
        Assert.isTrue(userList.size() == 0, "查询错误");
    }

}